package com.gl.order.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Builder
@ApiModel("添加客户地址相关信息")
public class ShippingAddressDto {

    @NotBlank(message = "请确认需要客户Id")
    @ApiModelProperty("客户Id")
    private String customerId;

    @NotBlank(message = "请确认需要收件人名称")
    @ApiModelProperty("收件人名称")
    private String name;

    @NotBlank(message = "请确认需要收件人电话")
    @ApiModelProperty("收件人电话")
    private String phone;

    @NotBlank(message = "请确认省")
    @ApiModelProperty("省")
    private String province;

    @NotNull(message = "必须填写省ID")
    @DecimalMin("1")
    @ApiModelProperty(value = "省Id",example = "1")
    private Integer provinceId;

    @NotBlank(message = "请确认市")
    @ApiModelProperty("市")
    private String city;

    @NotNull(message = "必须填写市ID")
    @DecimalMin("1")
    @ApiModelProperty(value = "市Id",example = "1")
    private Integer cityId;

    @NotBlank(message = "请确认区")
    @ApiModelProperty("区")
    private String region;

    @NotNull(message = "必须填写区ID")
    @DecimalMin("1")
    @ApiModelProperty(value = "区Id",example = "1")
    private Integer regionId;

    @NotBlank(message = "请确认地址")
    @ApiModelProperty("地址")
    private String address;

    @NotBlank(message = "请确认公司名称")
    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("备注")
    private String remark;

}
